package com.imooc.spark.streaming;

import org.apache.log4j.Logger;

/**
 * @author yuyon26@126.com
 * @description 模拟日志的产生
 * @date 2018/10/28 0:09
 */
public class LoggerGenerator {

    private static Logger logger = Logger.getLogger(LoggerGenerator.class.getName());

    public static void main(String[] args) throws InterruptedException {

        Integer index = 0;

        while (true) {
            Thread.sleep(1000);
            logger.info("value is : " + index++);
        }
    }

}
